home *** CD-ROM | disk | FTP | other *** search
/ Gigarom 1 / Gigarom Macintosh Archives (Quantum Leap)(CDRM1080320)(1993).iso / FILES / HYP / C-D / ChangeStackFont 1.11.cpt / ChangeStackFont 1.11 / cards.xml < prev    next >
Text File  |  1992-02-22  |  16KB  |  357 lines

  1. card_4041.xml
  2. <?xml version="1.0" encoding="utf-8" ?>
  3. <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
  4. <card>
  5.     <id>4041</id>
  6.     <filler1>0</filler1>
  7.     <bitmap>BMAP_4821.pbm</bitmap>
  8.     <cantDelete> <true /> </cantDelete>
  9.     <showPict> <true /> </showPict>
  10.     <dontSearch> <false /> </dontSearch>
  11.     <owner>2666</owner>
  12.     <link rel="stylesheet" type="text/css" href="stylesheet_3237.css" />
  13.     <part>
  14.         <id>3</id>
  15.         <type>button</type>
  16.         <visible> <true /> </visible>
  17.         <reserved5> 0 </reserved5>
  18.         <reserved4> 0 </reserved4>
  19.         <reserved3> 0 </reserved3>
  20.         <reserved2> 0 </reserved2>
  21.         <reserved1> 0 </reserved1>
  22.         <enabled> <true /> </enabled>
  23.         <rect>
  24.             <left>72</left>
  25.             <top>271</top>
  26.             <right>201</right>
  27.             <bottom>289</bottom>
  28.         </rect>
  29.         <style>roundrect</style>
  30.         <showName> <true /> </showName>
  31.         <highlight> <false /> </highlight>
  32.         <autoHighlight> <true /> </autoHighlight>
  33.         <sharedHighlight> <true /> </sharedHighlight>
  34.         <family>0</family>
  35.         <titleWidth>0</titleWidth>
  36.         <icon>0</icon>
  37.         <textAlign>center</textAlign>
  38.         <font>Clearface Regular</font>
  39.         <textSize>12</textSize>
  40.         <textStyle>plain</textStyle>
  41.         <name>Another Button</name>
  42.         <script>on mouseUpif the optionKey is down thenput return & "Enter some sample text here..." into bg fld "example"elseput return & "Look to the skies!" into bg fld "example"end ifend mouseUp</script>
  43.     </part>
  44.     <part>
  45.         <id>4</id>
  46.         <type>field</type>
  47.         <visible> <true /> </visible>
  48.         <dontWrap> <false /> </dontWrap>
  49.         <dontSearch> <false /> </dontSearch>
  50.         <sharedText> <false /> </sharedText>
  51.         <fixedLineHeight> <false /> </fixedLineHeight>
  52.         <autoTab> <false /> </autoTab>
  53.         <lockText> <true /> </lockText>
  54.         <rect>
  55.             <left>13</left>
  56.             <top>56</top>
  57.             <right>242</right>
  58.             <bottom>152</bottom>
  59.         </rect>
  60.         <style>scrolling</style>
  61.         <autoSelect> <false /> </autoSelect>
  62.         <showLines> <false /> </showLines>
  63.         <wideMargins> <false /> </wideMargins>
  64.         <multipleLines> <false /> </multipleLines>
  65.         <reservedFamily> 0 </reservedFamily>
  66.         <titleWidth>0</titleWidth>
  67.         <icon>0</icon>
  68.         <textAlign>left</textAlign>
  69.         <font>Optima</font>
  70.         <textSize>12</textSize>
  71.         <textStyle>plain</textStyle>
  72.         <textHeight>16</textHeight>
  73.         <name>Possibilities</name>
  74.         <script></script>
  75.     </part>
  76.     <content>
  77.         <layer>card</layer>
  78.         <id>4</id>
  79.         <text><span class="style2">ome possibilities...</span><span class="style1">These scripts can be put into a menu command for user action, or combined into pop-up fields, or act from a "preferences" type card in your stack...The original implementation of these concepts were in my own address stack and in a stack of HyperCard  columns that may or not become some kind of book someday. In the latter, the font selection and changing is handled via menu commands...Experiment!  ‚Äì Bill</span></text>
  80.     </content>
  81.     <content>
  82.         <layer>background</layer>
  83.         <id>20</id>
  84.         <text>Aa Bb Cc Dd Ee Ff Gg Hh Jj Ii Kk Ll Mm Nn Oo Pp Qq Rr Ss Tt Uu Vv Ww Xx Yy Zz0123456789 -‚Äì‚Äî~!@#$%^&*()_{ } [ ] \ / < > ‚⧠‚â• = ‚↠‚âà +Œ©√ß‚àö‚à´¬µ√•√ü‚àÇΔí¬©Àô‚àܬ¨‚Ä¢¬∞¬∂¬ß‚àû¬¢¬£‚Ñ¢¬°‚Äì¬∫¬™</text>
  85.     </content>
  86.     <content>
  87.         <layer>background</layer>
  88.         <id>24</id>
  89.         <text>Text above is: 25 pt. bold Optima</text>
  90.     </content>
  91.     <content>
  92.         <layer>background</layer>
  93.         <id>14</id>
  94.         <text>Other fields are: 14, 12 and 10 pt Optima</text>
  95.     </content>
  96.     <content>
  97.         <layer>background</layer>
  98.         <id>11</id>
  99.         <text>¬ß  This is a sample of 10 pt. text  ¬ß </text>
  100.     </content>
  101.     <content>
  102.         <layer>background</layer>
  103.         <id>13</id>
  104.         <text>Buttons are: 12 pt Clearface Regular</text>
  105.     </content>
  106.     <name>second</name>
  107.     <script>on closeCardset the scroll of cd fld possibilities to 0end closeCard</script>
  108. </card>
  109.  
  110.  
  111. card_2948.xml
  112. <?xml version="1.0" encoding="utf-8" ?>
  113. <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
  114. <card>
  115.     <id>2948</id>
  116.     <filler1>0</filler1>
  117.     <bitmap>BMAP_2411.pbm</bitmap>
  118.     <cantDelete> <true /> </cantDelete>
  119.     <showPict> <true /> </showPict>
  120.     <dontSearch> <false /> </dontSearch>
  121.     <owner>2666</owner>
  122.     <link rel="stylesheet" type="text/css" href="stylesheet_3237.css" />
  123.     <part>
  124.         <id>3</id>
  125.         <type>button</type>
  126.         <visible> <true /> </visible>
  127.         <reserved5> 0 </reserved5>
  128.         <reserved4> 0 </reserved4>
  129.         <reserved3> 0 </reserved3>
  130.         <reserved2> 0 </reserved2>
  131.         <reserved1> 0 </reserved1>
  132.         <enabled> <true /> </enabled>
  133.         <rect>
  134.             <left>140</left>
  135.             <top>270</top>
  136.             <right>242</right>
  137.             <bottom>288</bottom>
  138.         </rect>
  139.         <style>rectangle</style>
  140.         <showName> <true /> </showName>
  141.         <highlight> <false /> </highlight>
  142.         <autoHighlight> <true /> </autoHighlight>
  143.         <sharedHighlight> <true /> </sharedHighlight>
  144.         <family>0</family>
  145.         <titleWidth>0</titleWidth>
  146.         <icon>0</icon>
  147.         <textAlign>center</textAlign>
  148.         <font>Clearface Regular</font>
  149.         <textSize>12</textSize>
  150.         <textStyle>plain</textStyle>
  151.         <name>What it is</name>
  152.         <script>on mouseUplock screenhide cd fld "about" of cd "startUp"unlock screen with dissolve-- wait 20lock screenput return & "    ChangeStackFont" & return && "      by Bill Underwood" ¬¨& return && "        January 5th, 1992." into bg fld exampleunlock screen with dissolveend mouseUp</script>
  153.     </part>
  154.     <part>
  155.         <id>18</id>
  156.         <type>field</type>
  157.         <visible> <true /> </visible>
  158.         <dontWrap> <false /> </dontWrap>
  159.         <dontSearch> <false /> </dontSearch>
  160.         <sharedText> <false /> </sharedText>
  161.         <fixedLineHeight> <false /> </fixedLineHeight>
  162.         <autoTab> <false /> </autoTab>
  163.         <lockText> <true /> </lockText>
  164.         <rect>
  165.             <left>13</left>
  166.             <top>56</top>
  167.             <right>242</right>
  168.             <bottom>152</bottom>
  169.         </rect>
  170.         <style>scrolling</style>
  171.         <autoSelect> <false /> </autoSelect>
  172.         <showLines> <false /> </showLines>
  173.         <wideMargins> <false /> </wideMargins>
  174.         <multipleLines> <false /> </multipleLines>
  175.         <reservedFamily> 0 </reservedFamily>
  176.         <titleWidth>0</titleWidth>
  177.         <icon>0</icon>
  178.         <textAlign>left</textAlign>
  179.         <font>Optima</font>
  180.         <textSize>14</textSize>
  181.         <textStyle>plain</textStyle>
  182.         <textHeight>18</textHeight>
  183.         <name>alphabet</name>
  184.         <script></script>
  185.     </part>
  186.     <part>
  187.         <id>16</id>
  188.         <type>button</type>
  189.         <visible> <true /> </visible>
  190.         <reserved5> 0 </reserved5>
  191.         <reserved4> 0 </reserved4>
  192.         <reserved3> 0 </reserved3>
  193.         <reserved2> 0 </reserved2>
  194.         <reserved1> 0 </reserved1>
  195.         <enabled> <true /> </enabled>
  196.         <rect>
  197.             <left>213</left>
  198.             <top>194</top>
  199.             <right>246</right>
  200.             <bottom>225</bottom>
  201.         </rect>
  202.         <style>transparent</style>
  203.         <showName> <false /> </showName>
  204.         <highlight> <false /> </highlight>
  205.         <autoHighlight> <true /> </autoHighlight>
  206.         <sharedHighlight> <true /> </sharedHighlight>
  207.         <family>0</family>
  208.         <titleWidth>0</titleWidth>
  209.         <icon>19678</icon>
  210.         <textAlign>center</textAlign>
  211.         <font>Clearface Regular</font>
  212.         <textSize>12</textSize>
  213.         <textStyle>plain</textStyle>
  214.         <name>About</name>
  215.         <script>on mouseUplock screenshow cd fld "about"set the scroll of cd fld about to 0unlock screen with dissolveend mouseUp</script>
  216.     </part>
  217.     <part>
  218.         <id>1</id>
  219.         <type>field</type>
  220.         <visible> <false /> </visible>
  221.         <dontWrap> <false /> </dontWrap>
  222.         <dontSearch> <false /> </dontSearch>
  223.         <sharedText> <false /> </sharedText>
  224.         <fixedLineHeight> <false /> </fixedLineHeight>
  225.         <autoTab> <false /> </autoTab>
  226.         <lockText> <true /> </lockText>
  227.         <rect>
  228.             <left>13</left>
  229.             <top>55</top>
  230.             <right>242</right>
  231.             <bottom>239</bottom>
  232.         </rect>
  233.         <style>scrolling</style>
  234.         <autoSelect> <false /> </autoSelect>
  235.         <showLines> <false /> </showLines>
  236.         <wideMargins> <false /> </wideMargins>
  237.         <multipleLines> <false /> </multipleLines>
  238.         <reservedFamily> 0 </reservedFamily>
  239.         <titleWidth>0</titleWidth>
  240.         <icon>0</icon>
  241.         <textAlign>left</textAlign>
  242.         <font>Monaco</font>
  243.         <textSize>9</textSize>
  244.         <textStyle>plain</textStyle>
  245.         <textHeight>12</textHeight>
  246.         <name>thisFont</name>
  247.         <script>on mouseUpglobal userFontselect the clickLineput the selection into userFont -- which is used by changeStackFontlock screenhide meset the scroll of me to 0unlock screenchangeStackFont  -- at stack levelend mouseUp</script>
  248.     </part>
  249.     <part>
  250.         <id>4</id>
  251.         <type>button</type>
  252.         <visible> <true /> </visible>
  253.         <reserved5> 0 </reserved5>
  254.         <reserved4> 0 </reserved4>
  255.         <reserved3> 0 </reserved3>
  256.         <reserved2> 0 </reserved2>
  257.         <reserved1> 0 </reserved1>
  258.         <enabled> <true /> </enabled>
  259.         <rect>
  260.             <left>13</left>
  261.             <top>270</top>
  262.             <right>133</right>
  263.             <bottom>288</bottom>
  264.         </rect>
  265.         <style>rectangle</style>
  266.         <showName> <true /> </showName>
  267.         <highlight> <false /> </highlight>
  268.         <autoHighlight> <true /> </autoHighlight>
  269.         <sharedHighlight> <true /> </sharedHighlight>
  270.         <family>0</family>
  271.         <titleWidth>0</titleWidth>
  272.         <icon>0</icon>
  273.         <textAlign>center</textAlign>
  274.         <font>Clearface Regular</font>
  275.         <textSize>12</textSize>
  276.         <textStyle>plain</textStyle>
  277.         <name>And then, Zen</name>
  278.         <script>on mouseUplock screenhide cd fld "about" of cd "startUp"unlock screen with dissolve-- wait 20lock screenput "Zen is not religion, creed, guide, nor practice. And it has little to do with motorcycle maintenence or ResEdit, either. Nyuk, nyuk." ¬¨into bg fld "example"unlock screen with dissolveend mouseUp</script>
  279.     </part>
  280.     <part>
  281.         <id>19</id>
  282.         <type>field</type>
  283.         <visible> <false /> </visible>
  284.         <dontWrap> <false /> </dontWrap>
  285.         <dontSearch> <false /> </dontSearch>
  286.         <sharedText> <false /> </sharedText>
  287.         <fixedLineHeight> <false /> </fixedLineHeight>
  288.         <autoTab> <false /> </autoTab>
  289.         <lockText> <true /> </lockText>
  290.         <rect>
  291.             <left>11</left>
  292.             <top>56</top>
  293.             <right>244</right>
  294.             <bottom>239</bottom>
  295.         </rect>
  296.         <style>scrolling</style>
  297.         <autoSelect> <false /> </autoSelect>
  298.         <showLines> <false /> </showLines>
  299.         <wideMargins> <true /> </wideMargins>
  300.         <multipleLines> <false /> </multipleLines>
  301.         <reservedFamily> 0 </reservedFamily>
  302.         <titleWidth>0</titleWidth>
  303.         <icon>0</icon>
  304.         <textAlign>left</textAlign>
  305.         <font>Optima</font>
  306.         <textSize>12</textSize>
  307.         <textStyle>plain</textStyle>
  308.         <textHeight>16</textHeight>
  309.         <name>about</name>
  310.         <script>on mouseUplock screenhide meunlock screen with dissolveend mouseUp</script>
  311.     </part>
  312.     <content>
  313.         <layer>background</layer>
  314.         <id>11</id>
  315.         <text>¬ß  This is a sample of 10 pt. text  ¬ß </text>
  316.     </content>
  317.     <content>
  318.         <layer>card</layer>
  319.         <id>18</id>
  320.         <text>Aa Bb Cc Dd Ee Ff Gg Hh Ii Jj Kk Ll Mm Nn Oo Pp Qq Rr Ss Tt Uu Vv Ww Xx Yy Zz - ‚Äì ‚Äî0123456789  + = < > ~ ‚àû! ? * ¬Ø Àò ` ^ ‚⧠‚â• @ # $ % & |¬° ‚Ñ¢ ¬£ ¬¢ ¬ß ¬∂ ‚Ä¢ ¬∞ ¬™ ¬∫  \ / ( ) [ ] { }</text>
  321.     </content>
  322.     <content>
  323.         <layer>card</layer>
  324.         <id>19</id>
  325.         <text><span class="style2">NTRO</span><span class="style1">This stack is a by-product of some scripted font manipulation techniques I worked up for a couple of different stacks I've recently created.It does two things:First - it counts your installed fonts, and allows you change this stack's font and font styles, so you can view/browse your fonts.Second - the idea here is to give the user a bit of flexibility in how a stack is displayed, in that the functionality of this stack can be moved to other stacks if you follow the three steps noted below.Also, feel free to type sample text into the unlocked field. The buttons below it will refill that field with sample text as you click on them.</span><span class="style2">IN THE BEGINNING...</span><span class="style1">Thanks to Lynda Burgiss of the Catawba Valley Byte 32 Macintosh User Group in Hickory, NC, who inspired the idea for this stack's techniques, so a user would not be limited to a default font.</span><span class="style2">USE IT IN YOUR STACK!</span><span class="style1">To move the functionality of this stack into another stack, copy these three things to your stack:(1) The "Change Stack Font" button; (2) The scrolling font list  field that appears after you click the ChangeStackFont button (it is a card field named "thisFont") and, (3) The scripts noted at the stack level.‚Ä¢Note: You'll have to adjust the scripts a bit to remove (or accomodate) my scripted references to information fields in this stack, which are updated when you change fonts (or make your own fields, name them, and call them from the script accordingly.)</span><span class="style2">HOW IT WORKS</span><span class="style1">Once installed, these scripts will go through all cards in your stack, and change all field and/or button fonts to what you specify. It works in three parts:</span><span class="style2">First,</span><span class="style1"> the "ChangeStackFont" card button gets your installed fonts, and puts them into a hidden scrolling field (named "thisFont") which is then presented for you to select the font you want. (Note that this button, in this stack, will rename itself to whatever this stack's name is </span><span class="style3">on openStack</span><span class="style1">.)</span><span class="style2">Second,</span><span class="style1"> the font you selected from the scrolling field is stored into the global variable "userFont" and the stack-level handler </span><span class="style3">changeStackFont</span><span class="style1"> is called.</span><span class="style2">Third,</span><span class="style1"> </span><span class="style3">changeStackFont</span><span class="style1"> asks if you want to change buttons, fields, or both. Depending on the choice, one of three other stack-level handlers are called: </span><span class="style3">changeButtonFonts</span><span class="style1"> or</span><span class="style3"> changeFieldFonts</span><span class="style1"> or </span><span class="style3">changeAllFonts</span><span class="style1">.And that's it.</span><span class="style2">THE FUTURE:</span><span class="style1">Someday (perhaps) I might update changeStackFont into a single object that can be more easily moved to other stacks.In the meantime, if you like this stack, well...great! Drop me a line and let me know how you've used it!ChangeStackFont by Bill Underwood, 1/5/92   AppleLink: UNDERWOOD.B   AOL: ZenZa (or) QuickTime</span></text>
  326.     </content>
  327.     <content>
  328.         <layer>background</layer>
  329.         <id>13</id>
  330.         <text>Buttons are: 12 pt Clearface Regular</text>
  331.     </content>
  332.     <content>
  333.         <layer>background</layer>
  334.         <id>14</id>
  335.         <text>Other fields are: 14, 12 and 10 pt Optima</text>
  336.     </content>
  337.     <content>
  338.         <layer>background</layer>
  339.         <id>20</id>
  340.         <text>Aa Bb Cc Dd Ee Ff Gg Hh Ii Jj Kk Ll Mm Nn Oo Pp Qq Rr Ss Tt Uu Vv Ww Xx Yy Zz0123456789 -‚Äì‚Äî~!@#$%^&*()_{ } [ ] \ / < > ‚⧠‚â• = ‚↠‚âà +Œ©√ß‚àö‚à´¬µ√•√ü‚àÇΔí¬©Àô‚àܬ¨‚Ä¢¬∞¬∂¬ß‚àû¬¢¬£‚Ñ¢¬°‚Äì¬∫¬™</text>
  341.     </content>
  342.     <content>
  343.         <layer>background</layer>
  344.         <id>24</id>
  345.         <text>Text above is: 25 pt. bold Optima</text>
  346.     </content>
  347.     <content>
  348.         <layer>card</layer>
  349.         <id>1</id>
  350.         <text>1-800-MonotypeAppleGaramond BdAppleGaramond BdItAppleGaramond BkAppleGaramond BkItAppleGaramond LtAppleGaramond LtItAvant GardeB Galliard BoldB Garamond BoldB Goudy BoldB Korinna BoldB Optima BoldB Univers 65 BoldBI Galliard BoldItalicBI Garamond BoldItalicBI Goudy BoldItalicBI Korinna KursivBoldBI Optima BoldObliqueBlk Univers 75BlkO Univers 75 BlackObliqueBO Univers 65 BoldObliqueBookmanBraggadocio MTChicagoClearface RegularCourierFaustusGalliardGaramondGenevaGoudyHelveticaI Galliard ItalicI Goudy ItalicI Korinna KursivRegularI Optima ObliqueKorinnaL Univers 45 LightLLyndaBLO Univers 45 LightObliqueMonacoN Helvetica NarrowNew Century SchlbkNew YorkO Univers 55 ObliqueOptimaPalatinoSymbolTeknotTimesTNG MonitorsUnivers 55</text>
  351.     </content>
  352.     <name>startUp</name>
  353.     <script>on closeCardhide cd fld aboutset the scroll of cd fld about to 0end closeCard</script>
  354. </card>
  355.  
  356.  
  357.